<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../lib/jQuery/jquery-3.5.1.min.js"></script>
    <style>
        .contain {
            position: absolute;
            right: 120px;
            width: 80px;
            height: 40px;
            background-color: khaki;
        }

        input {
            border: 5px solid lightcoral;
        }
    </style>
</head>

<body>
    <div class="contain">
        <input type="text" value="1234" readonly>
    </div>
    <script>
        $('.contain').on('click', (evt) => {
            console.log('click');
        })
    </script>
</body>

</html>